package com.sq.partner.manager.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.sq.partner.manager.util.Page;

public interface RuleInfoDao extends BaseDao{

	public List<Map<String , String >> queryNlifePlans(String deptCode) throws SQLException;
	
	public boolean deletOldInfoByPlanNo(String planNo) throws Exception;
	
	public void insertNewPlanInfo(Map<String,String> map) throws Exception;
	
	public Map<String,String> queryPlanInfosByPlanNo(String planNo) throws Exception;
	
	//存html格式的条款文件
	public boolean insertNewRiskContent(Map<String,String> map) throws Exception;
	
	public List<Map<String,String>> loadRiskContentList(Map<String, Object> map) throws Exception;
	
	public int loadRiskContentListCount(Map<String, Object> map) throws Exception;

	public boolean isRiskFileExist(String riskCode) throws Exception;

	public String previewRiskContent(String riskCode)throws Exception;
	
	public Page<Map<String, Object>> queryPlanPageByCriteria(Page<Map<String, Object>> page) throws Exception;
}
